def input01():
    ls=[]
    while(True):
        a=input("enter:")
        if(a!=""):
            b=eval(a)
            ls.append(b)
        else:
            return ls

def add(ls):
    l=len(ls)
    sum=0
    count=0
    for i in range(l):
        sum=sum+ls[i]
        count=count+1
    return sum,count

def average(ls):
    sum,count=add(ls)
    av=sum/count
    return av


ls=input01()
print(ls)
sum=add(ls)[0]
print(sum)
av=average(ls)
print(av)
